7810361d2e5a2f236967b3208053ec80b0e5885a,streams-contrib/streams-processor-regex/src/test/java/org/apache/streams/regex/RegexMentionExtractorTest.java,RegexMentionExtractorTest,params,#,55

Before Change


                {"This is the @content of a standard tweet", Sets.newHashSet(new HashMap<String, Object>() {{
                    put("displayName", "content");
                }})},
                {"This is the content of a standard tweet", Sets.newHashSet(new HashMap<String, Object>())},
                {"This is the @content of a standard @tweet",  Sets.newHashSet(new HashMap<String, Object>() {{
                    put("displayName", "content");
                }},new HashMap<String, Object>() {{

After Change


                {"This is the @content of a standard tweet", Stream.of(new HashMap<String, Object>() {{
                  put("displayName", "content");
                }}).collect(Collectors.toSet())},
                {"This is the content of a standard tweet", Stream.of(new HashMap<String, Object>()).collect(Collectors.toSet())},
                {"This is the @content of a standard @tweet",  Stream.of(new HashMap<String, Object>() {{
                    put("displayName", "content");
                }},new HashMap<String, Object>() {{
                    put("displayName", "tweet");
                }}).collect(Collectors.toSet())},
                {"UNIX 时间1400000000 秒…… (该�觉了,��夜猫�)@程�员#", Stream.of(new HashMap<String, Object>() {{
                    put("displayName", "程�员");
                }}).collect(Collectors.toSet())},
                {"This is the body of a @fbpost. It can have multiple lines of #content, as well as much more detailed and flowery @language.",
                    Stream.of(new HashMap<String, Object>() {{
                    put("displayName", "fbpost");
                }},new HashMap<String, Object>() {{
                    put("displayName", "language");
                }}).collect(Collectors.toSet())}
        });
    }